#ifndef __AUTH_H__
#define __AUTH_H__

#include "../utils/cJSON.h"
#include "../utils/axios.h"

typedef struct {
    int id;
    char username[32];
} user_t;

extern user_t current_user;

cJSON* auth_json(int id, const char* username);

response_t* auth_login(char* username, char* password);

response_t* auth_logout(int user_id);

response_t* auth_register(char* username, char* password);

#endif // __AUTH_H__